export const login = async (data) => {

  const store = useStore()

  const res = await request.post('/api/dynamic-mock/auth/login', data)

  store.setUser(res.data?.data)
}
